import Vue from 'vue'
import VueRouter from 'vue-router'
import HomeRecommend from '../views/HomeRecommend.vue'
import HomeHot from '../views/HomeHot.vue'
import HomeSearch from '../views/HomeSearch.vue'
import SonglistDetails from '../views/SonglistDetails.vue'
import SongerDetail from '../views/SongerDetail.vue'

Vue.use(VueRouter)

const routes = [
  {
    path: '/',
    name: 'recommend',
    component: HomeRecommend,
    meta:{showNan:true}
  },
  {
    path: '/hot',
    name: 'hot',
    component: HomeHot,
    meta:{showNan:true}
  },
  {
    path: '/search',
    name: 'search',
    component: HomeSearch,
    meta:{showNan:true}
  },
  {
    path: '/songlistdetails',
    name: 'songlistdetails',
    component: SonglistDetails
  },
  {
    path: '/songerdetail',
    name: 'songerdetail',
    component: SongerDetail
  },
]

const router = new VueRouter({
  routes
})

export default router
